<!--
 * @Author         : yanyongyu
 * @Date           : 2022-10-04 07:11:12
 * @LastEditors    : yanyongyu
 * @LastEditTime   : 2022-10-04 09:00:23
 * @Description    : None
 * @GitHub         : https://github.com/yanyongyu
-->

{% from "components/diff/hunk-header.html.jinja" import diff_hunk_header %}
{% from "components/diff/hunk-line.html.jinja" import diff_hunk_line %}

{% macro diff_hunk(hunk) %}
{{ diff_hunk_header(hunk) }}
{% for line in hunk %}
{{ diff_hunk_line(line) }}
{% endfor %}
{% endmacro %}
